package edu.dayu.service;

import com.github.pagehelper.PageInfo;
import edu.dayu.pojo.Paging;
import edu.dayu.pojo.Type;

import java.util.List;

public interface TypeService {
    PageInfo<Type> listType(Paging paging);

    List<Type> listType();

    Type getType(int id);

    Boolean saveType(Type type);

    Boolean updateType(Type type);

    void deleteType(int id);

    List<Type> countTopThree();

    Integer countType();

    List<Type> countTopAll();
}
